package com.base.mapper.couponmapper;

import com.base.po.voip_coupon.CouponCategory;
import com.base.po.voip_coupon.CouponCategoryExample;
import java.util.List;

import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

public interface CouponCategoryMapper {
    int countByExample(CouponCategoryExample example);

    int deleteByExample(CouponCategoryExample example);

    int deleteByPrimaryKey(String id);

    int insert(CouponCategory record);

    int insertSelective(CouponCategory record);

    List<CouponCategory> selectByExample(CouponCategoryExample example);

    List<CouponCategory> selectAll(@Param("page") Page page, @Param("parentId") String parentId, @Param("sort") Integer sort);

    CouponCategory selectByPrimaryKey(String id);

    CouponCategory selectByCategory(String category);

    int updateByExampleSelective(@Param("record") CouponCategory record, @Param("example") CouponCategoryExample example);

    int updateByExample(@Param("record") CouponCategory record, @Param("example") CouponCategoryExample example);

    int updateByPrimaryKeySelective(CouponCategory record);

    int updateByPrimaryKey(CouponCategory record);

    int countAll(String parentId);

    void clearAll();
}